stage.set_background("winter")
sprite = codesters.Sprite("person12")
sprite.go_to(-125, -150)
frosty = codesters.Sprite("snowman")
frosty.go_to(100, -125)
snow = codesters.Sprite("snowflake3")
snow.go_to(100, 75)
t = codesters.Teacher()
try:
tval1 = greeting.get_text().lower()
except:
tval1 = "DNE"
t1 = TestObjective()
t1.add_success("happy holidays" in tval1, "Great Job!")
t1.add_failure(tval1 == "DNE", "Did you add a text shape and rename it greeting?")
t1.add_failure(tval1 == "hello.", "Did you change the text in the text shape?")
tester = TestManager()
tester.add_test_list([t1])
tester.run_tests()
tester.display_first_feedback()
-
Run Code
-
Activity Submitted!
Submit Work
-
Next Activity
-
Stop Running Code
-
Show Chart
-
Show Console
-
Reset Code Editor
-
Codesters How To (opens in a new tab)